<include file="Public:header" />
<form class="form-inline definewidth m20" action="{:U('Home/EquRepairRecordsComment/index')}" method="get">    
    纪录编号：
    <input type="text" name="repair_record_no" id="repair_record_no"class="abc input-default" placeholder="" value="{$repair_record_no}">&nbsp;&nbsp; 
     设备编号：
    <input type="text" name="number" id="number"class="abc input-default" placeholder="" value="{$number}">&nbsp;&nbsp;  
    <button type="submit" class="btn btn-primary">查询</button>
</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th></th>
        <th>维保纪录编号</th>
        <th>设备编号</th>
        <th>维保员工</th>
        <th>合同编号</th>
        <th>维修时间</th>
        <th>企业评价</th>
        <th>操作</th>
    </tr>
    </thead>
         <foreach name="list" item="l_val" key="lk">
        <tr>
            <td>{$lk+1}</td>
            <td>{$l_val.repair_record_no}</td>
            <td>{$l_val.equnumber}({$l_val.equname})</td>
            <td>{$l_val.user_id}({$l_val.nickname|default=$l_val.name})</td>
            <td>{$l_val.contract_id}</td>
            <td>{$l_val.repair_time|date='Y-m-d',###}</td>
            <td>{$l_val.score|default="暂无评价"}</td>
            <td>
                <if condition="empty($l_val['score'])">
                    <a href="{:U('Home/EquRepairRecordsComment/add',array('equid'=>$l_val['equ_repair_records_id']))}" title="添加评分" ><icon class="icon-comment" ></icon></a>
                </if>
                <if condition="!empty($l_val['score'])">
                   <a href="{:U('Home/EquRepairRecordsComment/edit',array('equid'=>$l_val['equ_repair_records_id'],'commentid'=>$l_val['comment_id']))}" title="修改评分" ><icon class="icon-edit" ></icon></a>
                </if>
                
            </td>
        </tr>
    </foreach>
</table>
<include file="Public:footer" />

